let saveMoney = document.querySelector(".saveMoney");
saveMoney.onclick = function getSum(num) {
    num = prompt("请输入本月的天数:")
    let sum = 0;
    for (let i = 0; i <= parseInt(num); i++) {
        sum += i;
    }
    alert("本月应该存：" + sum + "块钱！！！");
}
let saveMoney1 = document.querySelector(".saveMoney1");
saveMoney1.onclick = function getSum(num) {
    num = prompt("请输入本月的天数:")
    let sum = 0;
    for (let i = 0; i <= parseInt(num); i++) {
        sum += i;
    }
    alert("本月应该存：" + sum + "块钱！！！");
}
